package com.yz.common.exception;

import lombok.Data;

/**
 * @author yz
 * @create 2021-11-17 17:59
 */
@Data
public class NoStockException extends RuntimeException{
    private Long skuId;
    public NoStockException(Long skuId){
        super("商品id："+ skuId + "没有足够的的库存了");
    }

    public NoStockException() {
        super ("商品库存不足");
    }

    public NoStockException(String msg) {
        super (msg);
    }
}
